<?php
FLEA::loadClass('FLEA_Db_TableDataGateway');

class Model_Search extends FLEA_Db_TableDataGateway{
	var $tableName = 'product';
	var $primaryKey = 'id';
	
	var $hasOne = array(
		array('tableClass' => 'Model_ProduceCompany',
    		'foreignKey' => 'product_id',
    		'mappingName' => 'declareperson',
		),
		array('tableClass' => 'Model_Cert',
			'foreignKey' => 'product_id',
    		'mappingName' => 'declareperson',
		),
	);
}  
?>